package interfaces.clients.authorization;

import interfaces.clients.authorization.exceptions.MaximallyPossibleQuantityOfTheUsersException;

import java.util.Map;

/**
 * The interface of users database.
 *
 * @author Manujlov Maxim
 */
public interface IUsersDataBase extends Map {
  /**
   * The function generates the id for new user.
   *
   * @throws MaximallyPossibleQuantityOfTheUsersException if the quantity of the users is maximally possible
   * @return new id
   */
  public int makeNewId() throws MaximallyPossibleQuantityOfTheUsersException;
}
